<section class="scrollable padder" data-ng-controller="CheckController">

    <div class="panel panel-success" ng-if="curUser.isEffect=='check'">
        <div class="panel-body">
            <h3>你的信息正在审核中,请稍后!</h3>
        </div>
    </div>

    <div class="panel panel-success" ng-if="curUser.isEffect=='failure'">
        <div class="panel-body">
            <h3>已经审核失败 请重新提交</h3>
        </div>
    </div>


    <div class="panel panel-default" ng-if="curUser.isEffect=='none' || curUser.isEffect=='failure'">
        <div class="panel-heading">
            <div class="btn-group btn-group-justified" role="group" aria-label="...">
                <div class="btn-group" role="group">
                    <button type="button" class="btn btn-primary" ng-click="btnClick('owner')">业户申请</button>
                </div>
                <div class="btn-group" role="group">
                    <button type="button" class="btn btn-default" disabled ng-if="1==0"></button>
                </div>
                <div class="btn-group" role="group">
                    <button type="button" class="btn btn-success" ng-click="btnClick('driver')">驾驶员申请</button>
                </div>
            </div>
        </div>
        <div class="panel-body" >
            <div class="panel panel-primary" ng-if="type=='owner'">
                <div class="panel-heading">
                    <h3>业户资料提交</h3>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal">
                        <div class="form-group">
                            <label for="yyzzh" class="col-sm-2 control-label">营业执照号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="yyzzh" placeholder="营业执照号" data-ng-model="owner.yyzzh">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="fddbz" class="col-sm-2 control-label">法定代表人</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="fddbz" placeholder="法定代表人" data-ng-model="owner.fddbz">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="idnum" class="col-sm-2 control-label">代表人身份证</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="idnum" placeholder="代表人身份证" data-ng-model="owner.idnum">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="tel" class="col-sm-2 control-label">联系方式</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="tel" placeholder="联系方式" data-ng-model="owner.tel">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="address" class="col-sm-2 control-label">地址</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="address" placeholder="地址" data-ng-model="owner.address">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="company" class="col-sm-2 control-label">公司名称</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="company" placeholder="公司名称" data-ng-model="owner.company">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="duty" class="col-sm-2 control-label">税号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="duty" placeholder="税号" data-ng-model="owner.duty">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="capitalNum" class="col-sm-2 control-label">注册资金</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="capitalNum" placeholder="注册资金" data-ng-model="owner.capitalNum">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="type" class="col-sm-2 control-label">营业类型</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="type" placeholder="营业类型" data-ng-model="owner.type">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="scale" class="col-sm-2 control-label">公司规模</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="scale" placeholder="公司规模" data-ng-model="owner.scale">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button ng-click="checkOwner()" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>


            <div class="panel panel-success" ng-if="type=='driver'">
                <div class="panel-heading">
                    <h3>驾驶员资料提交</h3>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal">
                        <div class="form-group">
                            <label for="name" class="col-sm-2 control-label">驾驶员姓名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="name" placeholder="驾驶员姓名" data-ng-model="driver.name">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="idnum" class="col-sm-2 control-label">驾驶员身份证号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="idnum" placeholder="驾驶员身份证号" data-ng-model="driver.idnum">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="sex" class="col-sm-2 control-label">性别</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="sex" placeholder="性别" data-ng-model="driver.sex">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="nativePlace" class="col-sm-2 control-label">籍贯</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="nativePlace" placeholder="籍贯" data-ng-model="driver.nativePlace">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="age" class="col-sm-2 control-label">年龄</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="age" placeholder="年龄" data-ng-model="driver.age">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="address" class="col-sm-2 control-label">地址</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="address" placeholder="地址" data-ng-model="driver.address">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="tel" class="col-sm-2 control-label">联系方式</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="tel" placeholder="联系方式" data-ng-model="driver.tel">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="fileCode" class="col-sm-2 control-label">档案编号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="fileCode" placeholder="档案编号" data-ng-model="driver.fileCode">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="firstTime" class="col-sm-2 control-label">初次领证日期</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="firstTime" placeholder="初次领证日期" data-ng-model="driver.firstTime">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="startTime" class="col-sm-2 control-label">驾驶证有效开始时间</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="startTime" placeholder="驾驶证有效开始时间" data-ng-model="driver.startTime">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="endTime" class="col-sm-2 control-label">驾驶证有效结束时间</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="endTime" placeholder="驾驶证有效结束时间" data-ng-model="driver.endTime">
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-md-6">
                                <label class="col-md-4 control-label">绑定业户：</label>
                                <div class="col-md-8">
                                    <div class="input-group">
                                        <input type="text" class="form-control"
                                               data-ng-model="ownerName" placeholder="点击选择业户" disabled>
                                        <input type="hidden" data-ng-model="driver.ownerId"/>
                                        <span class="input-group-btn">
                                        <button class="btn btn-primary" type="button"
                                                data-ng-click="getAllOwners()">选择</button>
                                    </span>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button ng-click="checkDriver()" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>


        </div>
    </div>



</section>
